package com.study.mall.product.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.study.mall.product.group.Insert;
import com.study.mall.product.group.Update;
import lombok.Data;
import org.hibernate.validator.constraints.URL;
import javax.validation.constraints.*;

/**
 * 品牌
 * 
 * @author haha
 * @email 1099487054@qq.com
 * @date 2021-09-02 11:09:26
 */
@Data
@TableName("pms_brand")
public class BrandEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 品牌id
	 */
	@TableId
	//@NotEmpty(message = "id不能为空",groups = {Update.class})
	private Long brandId;
	/**
	 * 品牌名
	 */

	//@NotBlank(message = "品牌名不能为空",groups = {Insert.class})
	private String name;
	/**
	 * 品牌logo地址
	 */
	//@NotBlank(message = "logo必须非空")
	//@NotEmpty(message = "品牌logo地址不能为空",groups = {Insert.class})
	//@URL(message = "logo地址不合法",groups = {Insert.class})
	private String logo;
	/**
	 * 介绍
	 */
	private String descript;
	/**
	 * 显示状态[0-不显示；1-显示]
	 */
	private Integer showStatus;
	/**
	 * 检索首字母
	 */

	//@NotEmpty(message = "检索首字母不能为空",groups = {Insert.class})
	//@Pattern(regexp = "/^[a-zA-Z]$/",message = "检索首字母必须是一个英文字母")
	private String firstLetter;
	/**
	 * 排序
	 */
	//@Min(value = 0,message ="排序必须大于或等于0",groups = {Insert.class})
	private Integer sort;

}
